package com.imooc.luckymoney.controller;

import com.imooc.luckymoney.config.LimitConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

//@ResponseBody
//@Controller
@RestController
@RequestMapping("/hello")
public class HelloController {

    @Autowired
    private LimitConfig limitConfig;

    @GetMapping({"/say"})
//    @PostMapping("/say")
    public String say(@RequestParam(value = "id",required = false,defaultValue = "0")Integer myId) {
//        return "id："+ myId;
        return "说明：" + limitConfig.getDescription();
//        return "index";
    }
}
